import request from '@/utils/request'
//应付

// 取消结清
export function cancelPayableSettle(id) {
  return request({
    url: '/logi/sys/waybill/payable/cancelSettle/'+id,
    method: 'post'
  })
}

// 确认付款
export function confirmPayablePay(data) {
  return request({
    url: '/logi/sys/waybill/payable/confirmPay',
    method: 'post',
    data: data
  })
}

// 确认结清
export function confirmPayableSettle(id) {
  return request({
    url: '/logi/sys/waybill/payable/confirmSettle/'+id,
    method: 'post'
  })
}

// 查询应付列表
export function payableList(data) {
  return request({
    url: '/logi/sys/waybill/payable/list',
    method: 'post',
    data
  })
}

// 查询付款记录
export function payableRecord(id) {
  return request({
    url: '/logi/sys/waybill/payable/payList/' + id,
    method: 'get',
  })
}

// 修改付款记录
export function updatePayableRecord(data) {
  return request({
    url: '/logi/sys/waybill/payable/updateRecord',
    method: 'post',
    data:data
  })
}

// 删除收款记录
export function deletePayableRecord(id) {
  return request({
    url: '/logi/sys/waybill/payable/deleteRecord/'+id,
    method: 'post'
  })
}


